package com.star.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.star.entity.User;
import com.star.service.UserService;
import com.star.mapper.UserMapper;
import org.springframework.stereotype.Service;

/**
* @author star
* @description 针对表【user】的数据库操作Service实现
* @createDate 2023-03-28 23:05:49
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{


    @Override
    public User UserLogin(String userName) {
        QueryWrapper<User> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("username",userName);
        User user1 = baseMapper.selectOne(queryWrapper);
        return user1;
    }
}




